package com.yidiandao.business.ui.adapter;

import android.content.Context;

import com.yidiandao.business.ui.widget.listview.CommonAdapter;
import com.yidiandao.business.ui.widget.listview.DisplayItemManager;
import com.yidiandao.business.ui.widget.listview.DisplayListItem;
import com.yidiandao.business.ui.widget.listview.displaylistitem.BuyGoodsListItem;
import com.yidiandao.business.ui.widget.listview.displaylistitem.BuyGoodsReduceListItem;

/** 确认订单-商品清单-Adapter */
public class BuyGoodsListAdapter extends CommonAdapter<DisplayListItem> {

    public BuyGoodsListAdapter(Context context) {
        super(context);
    }

    @Override
    protected void registerDisplayListItemMap() {
        DisplayItemManager.register(getAdapterTag(), BuyGoodsListItem.class);
        DisplayItemManager.register(getAdapterTag(), BuyGoodsReduceListItem.class);
    }

    @Override
    protected String getAdapterTag() {
        return BuyGoodsListAdapter.class.getSimpleName();
    }
}
